<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title></title>
</head>
<body>
    <p>周名霞229971345</p>
    <div>实验一</div>
    <script>
        function getsSum(num1,num2){
            var sum=num1+num2;
            console.log(num1+"+"+num2+"="+(num1+num2));
        }
        getsSum();
    </script>
    <div>实验二</div>
    <script>
        var getProduct=function(num1,num2){
            console.log(num1+"*"+num2+"="+num1*num2);
        };
        getProduct(2,4);
    </script>
    <div>实验三</div>
    <script>
        var a=100;
        function test(){
            console.log(a);
            a=10;
            console.log(a);
        }
        test();
        console.log(a);
    </script>
    <div>实验四</div>
    <script>
        var a=10;
        fun1();
        function fun1(){
            var b=20;
            console.log(a);
            console.log(b);
            var a=30;
        }
    </script>
    <div>实验五</div>
    <script>
        function fun2(a,b){
            console.log(arguments[0]);
            console.log(arguments[1]);
            console.log(arguments[2]);
        }
        fun2(1,2,3);
    </script>
    <div>实验六</div>
    <script>
        function fun3(){
            for(var temp in arguments){
                console.log(arguments[temp]);
            }
        }
        fun3(1,2,3);
    </script>
    <div>实验七</div>
    <script>
        var num;
        num=100;
        "use strict";
        console.log("原来的代码是错误的，应该先定义函数");
    </script>
    <div>实验八</div>
    <script>
        "use strict";
        let m=11;
        console.log(m);
        n=54;//无法输出n的原因：这里没有使用var、let、const声明变量n
        console.log(n);
    </script>
    <div>实验九</div>
    <script>
        "use strict"; 
        try{
            let x = 10;
            console.log(x);
            y = 20;
            console.log(y);
        } 
        catch (error) {
            console.error("发生错误",error.massage);
        }
    </script>
</body>
</html>